{extend name="admin/layout" /}
{block name="main"}
<div id="main-container">
    <div id="breadcrumb">
        <ul class="breadcrumb">
            <li><i class="fa fa-home"></i><a href="/"> 首页</a></li>
            <li><i class="fa fa-desktop"></i><a href="{:url('index')}"> 管理后台</a></li>
            <li class="active">站点配置</li>
        </ul>
    </div><!-- /breadcrumb-->
    <div class="main-header clearfix">
        <div class="page-title">
            <h3 class="no-margin">站点配置</h3>
        </div><!-- /page-title -->
    </div>
    <div class="padding-md">
        <div class="row">
            <div class="col-lg-12">
                <div class="panel panel-warning">
                    <div class="panel-heading">
                        站点配置
                    </div>
                    <div class="panel-body">

                        <form method="post" class="form-horizontal">
                            <div class="form-group">
                                <label class="col-lg-3 control-label">ZID</label>
                                <div class="col-lg-8">
                                    <input type="text" class="form-control" value="{$web.zid}" disabled>
                                </div>
                            </div>
                            {if condition="ZID eq 1"}
                            <div class="form-group">
                                <label class="col-lg-3 control-label">网站域名</label>
                                <div class="col-lg-8">
                                    <input type="text" name="domain" class="form-control" value="{$web.domain}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-3 control-label">额外域名</label>
                                <div class="col-lg-8">
                                    <input type="text" name="domain2" class="form-control" value="{$web.domain2}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-3 control-label">站点到期</label>
                                <div class="col-lg-8">
                                    <input type="datetime" name="endtime" class="form-control" value="{$web.endtime}">
                                </div>
                            </div>
                            {else}
                            <div class="form-group">
                                <label class="col-lg-3 control-label">网站域名</label>
                                <div class="col-lg-8">
                                    <input type="text" class="form-control" value="{$web.domain}" disabled>
                                </div>
                            </div>
                            {/if}
                            <div class="form-group">
                                <label class="col-lg-3 control-label">站长QQ</label>
                                <div class="col-lg-8">
                                    <input type="text" name="qq" class="form-control" value="{$web.qq}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-3 control-label">站点名称</label>
                                <div class="col-lg-8">
                                    <input type="text" name="name" class="form-control" value="{$web.name}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-3 control-label">SEO标题</label>
                                <div class="col-lg-8">
                                <textarea name="title" rows="5"
                                          class="form-control">{:getHtmlCode($web.title,true)}</textarea>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-3 control-label">SEO关键词</label>
                                <div class="col-lg-8">
                                    <textarea name="keywords" rows="5" class="form-control">{:getHtmlCode($web.keywords,true)}</textarea>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-3 control-label">SEO标题</label>
                                <div class="col-lg-8">
                                    <textarea name="description" rows="5" class="form-control">{:getHtmlCode($web.description,true)}</textarea>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-3 control-label">用户面板页公告</label>
                                <div class="col-lg-8">
                                    <textarea name="gg_panel" rows="5" class="form-control">{:getHtmlCode($web.gg_panel,true)}</textarea>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-3 control-label">QQ添加页公告</label>
                                <div class="col-lg-8">
                                    <textarea name="gg_qqadd" rows="5" class="form-control">{:getHtmlCode($web.gg_qqadd,true)}</textarea>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-3 control-label">代挂下单页公告</label>
                                <div class="col-lg-8">
                                    <textarea name="gg_dgadd" rows="5" class="form-control">{:getHtmlCode($web.gg_dgadd,true)}</textarea>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-lg-3 control-label">邀请列表页公告</label>
                                <div class="col-lg-8">
                                    <textarea name="gg_invite" rows="5" class="form-control">{:getHtmlCode($web.gg_invite,true)}</textarea>
                                </div>
                            </div>

                            <div class="form-group">
                                <div class="col-lg-offset-3 col-lg-8">
                                    <button class="btn btn-primary" type="submit">保存配置</button>
                                    <button class="btn btn-default-outline" type="reset">重置</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{/block}
